<?php
// +----------------------------------------------------------------------
// | likeadmin快速开发前后端分离管理后台（PHP版）
// +----------------------------------------------------------------------
// | 欢迎阅读学习系统程序代码，建议反馈是我们前进的动力
// | 开源版本可自由商用，可去除界面版权logo
// | gitee下载：https://gitee.com/likeshop_gitee/likeadmin
// | github下载：https://github.com/likeshop-github/likeadmin
// | 访问官网：https://www.likeadmin.cn
// | likeadmin团队 版权所有 拥有最终解释权
// +----------------------------------------------------------------------
// | author: likeadminTeam
// +----------------------------------------------------------------------

namespace app\adminapi\validate\skits;


use app\common\validate\BaseValidate;


/**
 * SkitsEpisodes验证器
 * Class SkitsEpisodesValidate
 * @package app\adminapi\validate
 */
class SkitsEpisodesValidate extends BaseValidate
{

    /**
     * 设置校验规则
     * @var string[]
     */
    protected $rule = [
        'id'                   => 'require',
        'platform_id'          => 'require',
        'platform_skits_id'    => 'require',
        'platform_episodes_id' => 'require',
        'skits_id'             => 'require',
        'episodes_name'        => 'require',
        'skits_name'           => 'require',
        'episodes_order'       => 'require',
        'summary'              => 'require',
        'thumb'                => 'require',
        'status'               => 'require',
        'is_vip'               => 'require',
        'k_coin'               => 'require',
        'free_time'            => 'require',
        'episodes_path'        => 'require',
    ];


    /**
     * 参数描述
     * @var string[]
     */
    protected $field = [
        'id'                   => 'id',
        'platform_id'          => '平台ID',
        'platform_skits_id'    => '平台短剧ID',
        'platform_episodes_id' => '平台剧集ID',
        'skits_id'             => '短剧ID',
        'episodes_name'        => '剧集名称',
        'skits_name'           => '短剧名称',
        'episodes_order'       => '剧集排序',
        'summary'              => '剧集摘要',
        'thumb'                => '封面',
        'status'               => '审核 0:待审 1:已审核',
        'is_vip'               => '是否VIP剧集 0:否 1:是',
        'k_coin'               => '剧集K币',
        'free_time'            => '免费时长',
        'episodes_path'        => '剧集路径',
    ];


    /**
     * @notes 添加场景
     * @return SkitsEpisodesValidate
     * @author likeadmin
     * @date 2024/07/13 15:05
     */
    public function sceneAdd()
    {
        return $this->only(['skits_id', 'episodes_order']);
    }


    /**
     * @notes 编辑场景
     * @return SkitsEpisodesValidate
     * @author likeadmin
     * @date 2024/07/13 15:05
     */
    public function sceneEdit()
    {
        return $this->only(['id', 'platform_id', 'platform_skits_id', 'platform_episodes_id', 'skits_id', 'episodes_name', 'skits_name', 'episodes_order', 'summary', 'thumb', 'status', 'is_vip', 'k_coin', 'free_time', 'episodes_path']);
    }


    /**
     * @notes 删除场景
     * @return SkitsEpisodesValidate
     * @author likeadmin
     * @date 2024/07/13 15:05
     */
    public function sceneDelete()
    {
        return $this->only(['id']);
    }


    /**
     * @notes 详情场景
     * @return SkitsEpisodesValidate
     * @author likeadmin
     * @date 2024/07/13 15:05
     */
    public function sceneDetail()
    {
        return $this->only(['id']);
    }

}
